package com.ly.mpayment.persist.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * ProvincialInformation entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="provincialinformation"

)

public class ProvincialInformation  implements java.io.Serializable {


    // Fields

     private String provinceuuid;
     private String provincecode;
     private String provincename;
     private String provincestatus;
     private Date createtime;
     private String remark;
//     private Set<DownRechargeGame> downRechargeGames = new HashSet<DownRechargeGame>(0);
//     private Set<DownShopProduct> downShopProducts = new HashSet<DownShopProduct>(0);
//     private Set<UpShopInfo> upShopInfos = new HashSet<UpShopInfo>(0);
//     private Set<DownRechargeFlow> downRechargeFlows = new HashSet<DownRechargeFlow>(0);
//     private Set<UpgameRecharge> upgameRecharges = new HashSet<UpgameRecharge>(0);
//     private Set<UpShopPro> upShopPros = new HashSet<UpShopPro>(0);
//     private Set<DownShopInfo> downShopInfos = new HashSet<DownShopInfo>(0);
//     private Set<UpOrder> upOrders = new HashSet<UpOrder>(0);


    // Constructors

    /** default constructor */
    public ProvincialInformation() {
    }


    /** full constructor */
    public ProvincialInformation(String provincecode, String provincename, String provincestatus, Date createtime, String remark, Set<DownRechargeGame> downRechargeGames, Set<DownShopProduct> downShopProducts,  Set<DownRechargeFlow> downRechargeFlows, Set<UpgameRecharge> upgameRecharges, Set<UpShopProduct> upShopPros, Set<DownShopInfo> downShopInfos, Set<UpOrder> upOrders) {
        this.provincecode = provincecode;
        this.provincename = provincename;
        this.provincestatus = provincestatus;
        this.createtime = createtime;
        this.remark = remark;
//        this.downRechargeGames = downRechargeGames;
//        this.downShopProducts = downShopProducts;
//        this.upShopInfos = upShopInfos;
//        this.downRechargeFlows = downRechargeFlows;
//        this.upgameRecharges = upgameRecharges;
//        this.upShopPros = upShopPros;
//        this.downShopInfos = downShopInfos;
//        this.upOrders = upOrders;
    }


    // Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="provinceuuid", unique=true, nullable=false, length=40)

    public String getProvinceuuid() {
        return this.provinceuuid;
    }

    public void setProvinceuuid(String provinceuuid) {
        this.provinceuuid = provinceuuid;
    }

    @Column(name="provincecode", length=40)

    public String getProvincecode() {
        return this.provincecode;
    }

    public void setProvincecode(String provincecode) {
        this.provincecode = provincecode;
    }

    @Column(name="provincename", length=40)

    public String getProvincename() {
        return this.provincename;
    }

    public void setProvincename(String provincename) {
        this.provincename = provincename;
    }

    @Column(name="provincestatus", length=40)

    public String getProvincestatus() {
        return this.provincestatus;
    }

    public void setProvincestatus(String provincestatus) {
        this.provincestatus = provincestatus;
    }

    @Column(name="createtime", length=19)

    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Column(name="remark", length=1000)

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
//    @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="provincialInformation")
//
//    public Set<DownRechargeGame> getDownRechargeGames() {
//        return this.downRechargeGames;
//    }
//
//    public void setDownRechargeGames(Set<DownRechargeGame> downRechargeGames) {
//        this.downRechargeGames = downRechargeGames;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="provincialInformation")
//
//    public Set<DownShopProduct> getDownShopProducts() {
//        return this.downShopProducts;
//    }
//
//    public void setDownShopProducts(Set<DownShopProduct> downShopProducts) {
//        this.downShopProducts = downShopProducts;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="provincialInformation")
//
//    public Set<UpShopInfo> getUpShopInfos() {
//        return this.upShopInfos;
//    }
//
//    public void setUpShopInfos(Set<UpShopInfo> upShopInfos) {
//        this.upShopInfos = upShopInfos;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="provincialInformation")
//
//    public Set<DownRechargeFlow> getDownRechargeFlows() {
//        return this.downRechargeFlows;
//    }
//
//    public void setDownRechargeFlows(Set<DownRechargeFlow> downRechargeFlows) {
//        this.downRechargeFlows = downRechargeFlows;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="provincialInformation")
//
//    public Set<UpgameRecharge> getUpgameRecharges() {
//        return this.upgameRecharges;
//    }
//
//    public void setUpgameRecharges(Set<UpgameRecharge> upgameRecharges) {
//        this.upgameRecharges = upgameRecharges;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="provincialInformation")
//
//    public Set<UpShopPro> getUpShopPros() {
//        return this.upShopPros;
//    }
//
//    public void setUpShopPros(Set<UpShopPro> upShopPros) {
//        this.upShopPros = upShopPros;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="provincialInformation")
//
//    public Set<DownShopInfo> getDownShopInfos() {
//        return this.downShopInfos;
//    }
//
//    public void setDownShopInfos(Set<DownShopInfo> downShopInfos) {
//        this.downShopInfos = downShopInfos;
//    }
//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="provincialInformation")
//
//    public Set<UpOrder> getUpOrders() {
//        return this.upOrders;
//    }
//
//    public void setUpOrders(Set<UpOrder> upOrders) {
//        this.upOrders = upOrders;
//    }









}
